<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/base/taglibs.jsp"%>
<%@include file="/WEB-INF/jsp/base/head.jsp"%> 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head> 

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>属性管理列表</title>
</head>
<body>
	<s:form id="form1" namespace="/property" action="propertyAction" name="form1" method="post">
	
	<input type="hidden" id="addURL" value="propertyAction!getPropertyAdd.do"/>
	<input type="hidden" id="delURL" value="propertyAction!propertyDelete.do"/>
	<input type="hidden" id="editURL" value="propertyAction!getPropertyEdit.do"/>
	
	<div class="center_main">
		 <div id="btn-option">
			<a class="add-btn"  id="add" 		href="javascript:void(0);" title="新增">新增</a>
			<a class="edit-btn" id="edit"       href="javascript:void(0);" title="修改">修改</a>
			<a class="del-btn"  id="delete"     href="javascript:void(0);" title="删除">删除</a>
		</div>
		<div class="center_left"></div>
	</div>
	<div id="page-top">
		<span>属性管理列表</span>
		<b></b><i></i>
	</div>
  
	<div id="page"> 
       
            <div id="search">
       
	       		<div class="search-edit-wapper">
					<label for="">属性名称：</label>
					<input type="text" class="inputText" name="propertyBizBean.propertyKey" value="${propertyBizBean.propertyKey}" />
				</div>
				
				<div class="search-edit-wapper">
					<label for="">属性备注：</label>
					<input type="text" class="inputText" name="propertyBizBean.remark" value="${propertyBizBean.remark}" />
				</div>
				
				<div class="search-edit-wapper">
					<label for="">属性备注：</label>
					<select name="propertyBizBean.remark1">
						 <option value="">请选择</option>
						 <s:iterator value="%{allPropertyRemarkList}" status="sta">
							<option <s:if test="%{allPropertyRemarkList[#sta.index]==propertyBizBean.remark1}">selected</s:if> value="${allPropertyRemarkList[sta.index]}" style="width:300px;">${allPropertyRemarkList[sta.index]}</option>
						 </s:iterator>
					 </select>
				</div>
			</div>
			
			<div id="search-btn-wapper">
				<s:submit cssClass="btn"  method="getPropertyList" value="查询"></s:submit>
			</div>
            
            <div id="item-list">
				<table>
				   <thead>
				     <tr>
						<th>选择<input type="checkbox" id="selectAll" /></th>
						<th>属性名称</th>
						<th>属性值</th>
						<th>备注</th>
					 </tr>
				   </thead>
				   <tbody>
						<s:iterator value="propertyBizBeanList" status="sta">
						<tr>
							<td><input type="checkbox" class="classCheckbox" name="propertyBizBeanList[${sta.index}].propertyId" value="${propertyId }" /></td>
							<td>${propertyKey }</td>
							<td>${propertyValue }</td>
							<td>${remark }</td>
						</tr>
						</s:iterator>
						<s:if test="propertyBizBeanList.size == 0">
						    <tr>
						       <td colspan="4"><span class="spanRB">数据暂无!</span></td>
						    </tr>
						</s:if>
					</tbody>
				</table>
			</div>
    </div>
    </s:form>
    <div id="page-bottom">
    	<b></b><i></i>
		<d:page namespace="/property" action="propertyAction!getPropertyList">
			<d:param name="propertyBizBean.propertyKey" value="${propertyBizBean.propertyKey }"></d:param>
           	<d:param name="propertyBizBean.remark" value="${propertyBizBean.remark }"></d:param>
		</d:page>
	</div>
</body>
</html>